<?php
/**
 * Description tab
 *
 * @author 		WooThemes
 * @package 	WooCommerce/Templates
 * @version     2.0.0
 */

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

global $woocommerce, $post, $product;

$heading = esc_html( apply_filters('woocommerce_product_description_heading', __( 'Product Description', 'woocommerce' ) ) );
?>

<h2><?php echo $heading; ?></h2>

<?php the_content(); ?>

<h3>Product Details &amp; Specifications</h3>
<?php if(get_field('compareproductatts')) { ?>
    <table class="shop_attributes">
        <?php while(has_sub_field('compareproductatts')) : ?>
            <tr>
                <th><?php the_sub_field('compareproductattname'); ?></th>
                <td><?php the_sub_field('compareproductatt'); ?></td>
            </tr>
        <?php endwhile; ?>
    </table>
<?php } else { ?>
    <?php $product->list_attributes(); ?>
<?php } ?>